package com.bicon.life.core.base.event;

import com.bicon.life.core.base.bean.SelfResources;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.ApplicationContextEvent;

/**
 * Created by L on 2017/5/25.
 */
public class SpringResourcesRefreshedEvent extends ApplicationContextEvent {

    private SelfResources selfResources;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public SpringResourcesRefreshedEvent(ApplicationContext source,SelfResources selfResources) {
        super(source);
        this.selfResources =selfResources;
    }


    public SelfResources getSelfResources() {
        return selfResources;
    }

    public void setSelfResources(SelfResources selfResources) {
        this.selfResources = selfResources;
    }
}
